All Questions
Tagged with software-rectext-processing
8 questions
1vote
0answers
369views
Formatting multiline comments in source code (also for documentation)?
What I'm looking for can be stated simply as: Are there any existing tools/approaches, that would allow me to (at least partially) automatically format C source code comments for documentation? I'm ...
4votes
3answers
940views
Fast version of paste
paste is a brilliant tool, but it is dead slow: I get around 50 MB/s on my server when running: paste -d, file1 file2 ... file10000 | pv >/dev/null paste is using 100% CPU according to top, so it ...
4votes
2answers
1kviews
I need a text editor to edit/visualize >10GB text files
So as to vizualize, and hopefully edit, a very large text file, more than 10GBytes (a backup dump of whole database), I have tried using vim... it didn't behave very well. I have also tried cat to at ...
11votes
1answer
2kviews
Is there a command like head but for line truncation?
Linux's head selects a number of lines from the top of a file. Is there a command that selects a number of characters from the front of a line? The use case behind the question is this: I want to ...
2votes
2answers
2kviews
How do you truncate all columns in a file to a specific length?
Given columned text in a file that is delimited by a certain character, how do you truncate the width of either a specific column(s) or all columns? The use case is that I am reading some log files ...
6votes
1answer
728views
merge that works at word granularity instead of line
The old diff, patch, and merge programs, and their modern descendents in the form of version control systems work great for managing source code that can be edited concurrently by multiple people. ...
19votes
6answers
19kviews
Command like `column -t` that instead keeps separators in output
I'm editing a simple table. I would like to have it nicely formatted. While I could use tbl, latex, or similar, this seems overkill -- plain text really is sufficient. As it's simple I might as ...
89votes
29answers
68kviews
Is there a robust command line tool for processing csv files?
I work with CSV files and sometimes need to quickly check the contents of a row or column from the command line. In many cases cut, head, tail, and friends will do the job; however, cut cannot easily ...